import requests

url = "https://note.youdao.com/yws/mapi/user?method=checkin"

payload={}
headers = {
  'Accept': '*/*',
  'User-Agent': 'YNote',
  'Host': 'note.youdao.com',
  'Content-Length': '0',
  'Connection': 'Keep-Alive',
  'Cache-Control': 'no-cache',
  'Cookie': 'OUTFOX_SEARCH_USER_ID=id@10.169.0.81; YNOTE_FORCE=true; YNOTE_SESS=v2|QFBd7gv-UeynLg4OLkm0UGRLYf6MUl0Tz0HeZhfeLRkmh4UG6LgyR64hMkEkfkl0gL0Mzl0Mgz0QSOfqS6MlERq4PMYEkMzGR; YNOTE_LOGIN=1||id; jid'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)


if    '":1,' in response.text:
    print("OK!JSESSIONID1066163285.1606355031233=aaaohiUMt4_MwcPXhr1xx")


else:
    raise Exception("Not Success.")

